﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ooganizer.Platform
{
    [Serializable]
    public class Disposable : IDisposable
    {
        ~Disposable()
        {
            Dispose(false);
        }

        public void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);
        }

        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                // Clean up all managed resources
            }

            // Clean up all native resources
        }
    }
}
